﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using TTGStudios.NotificationCenterNET;

namespace ExampleUsageApp
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

		private void MetricUnits_Checked(object sender, RoutedEventArgs e)
		{
			// Notify any interested parties that metric units have been selected.
			NotificationCenter<Message>.Instance.SendMessage(Message.MetricUnitsSelected, this, EventArgs.Empty);
		}

		private void EnglishUnits_Checked(object sender, RoutedEventArgs e)
		{
			// Notify any interested parties that English units have been selected.
			NotificationCenter<Message>.Instance.SendMessage(Message.EnglishUnitsSelected, this, EventArgs.Empty);
		}

		private void SaveToSkyDrive_Checked(object sender, RoutedEventArgs e)
		{
			// Notify any interested parties that save to SkyDrive setting has changed.
			NotificationCenter<Message>.Instance.SendMessage(Message.SaveToSkyDriveChanged, this, saveToSkyDriveCheckbox.IsChecked);
		}
    }
}
